package util

import (
	"log"
	"os"
)

func TestLog() {
	log.SetFlags(log.Ldate | log.Ltime | log.Llongfile)
	log.SetPrefix("aa-")
	file, _ := os.OpenFile("./xx.log", os.O_CREATE|os.O_RDONLY|os.O_APPEND, 0777)
	log.SetOutput(file)

	log.Println(11)
	log.Println(111)
	log.Println(222)

	logger := log.New(os.Stdout, "aa", log.Ldate|log.Ltime|log.Llongfile)
	logger.Println(11123)
}
